package com.rockontrol.ele.service;

import java.util.List;

import com.rockontrol.ele.pojo.*;
import com.rockontrol.ele.vo.*;

public interface MaBaseSvc {
	//编码映射服务
	public String createMapping(Ba编码模式映射 bm_);
	
	public Ba编码模式映射 getMapping(String id);
	
	public List<Ba编码模式映射> getMappings(String type);
	public String pageInitMappings(String type,String roll);
	
	public Boolean updateMapping(Ba编码模式映射 bm);
	
	public Boolean deleteMapping(String id);
	
	public List<EqCatMappingVo> getMaCatMappings(String mappingId);
	public String pageInitGetMaCatMappings(String mappingId,String roll);
	
	public Boolean catMap(String srcId,String destId,String mappingId);
	
	public Boolean deleteMap(String oid);
	
	//分类服务
	public List<BaModelClassVO> getMaModelClass (MaModelClassCdt cdt_);
	
	public String createMaCategory(Ba物资分类 ec_);
		
	public Ba物资分类 getMaCategory(String id_);
	
	public List<Ba物资分类> getMaCategorys(MaCategoryOption op_);
	public String pageInitGetMaCategorys(MaCategoryOption op_,String roll);
	
	public Boolean updateMaCategory (Ba物资分类 ec_);
	
	public Boolean deleteMaCategory (String id_);
	
	public Boolean checkMaCategoryCode(String code);

	public Boolean updateDropTypes(String pid,String code,String tid,String type);
	//型号服务
	public String createMaType(Ba规格型号 et_);
	
	public Ba规格型号 getMaType(String id_);
	
	public List<Ba规格型号> getMaTypes(MaTypeOption op_);
	public String pageInitGetMaTypes(MaTypeOption op_,String roll);
	
	public Boolean updateMaType (Ba规格型号 et_);
	
	public Boolean deleteMaType (String id_);
	public String getCode(String id_);
	
	//获取物资分类型号自动填充数据
	public List<BaAutoTypeVO> getMaAutoType(String type,String model);
	
	//获取设备分类型号自动填充
	public List<BaAutoTypeVO> getElAutoType(String type,String model);
	
	
	//审批流程服务
	public String createTheMaterialManage (Ma物资流程审批 mpm_);
	
	public Ma物资流程审批 getTheMaterialManage (String id_);
	
	public List<Ma物资流程审批> getMaterialManages(String id_);
	
	public Boolean updateMaterialManages(String id_);
	
	//知识库服务
	public String createKnowledge(Ba知识库 kn_);
	
	public Ba知识库 getKnowledge(String id_);
	
	public List<Ba知识库> getKnowledges(KnowledgeOption opt);
	public String pageIintGetKnowledges(KnowledgeOption opt,String roll);
	
	public Boolean updateKnowledge(Ba知识库 kn_);
	
	public Boolean deleteKnowledge(String id_);
	
	//数据权限控制
	public String createTheAuthorityControl (Ma权限控制 mpm_);
	
	public Ma权限控制 getTheAuthorityControl (String oid_);
	
	public List<Ma权限控制> getAuthorityControls (MaControlCdt cdt_);
	public boolean updateTheAuthorityControl (Ma权限控制 mpm_);
	public boolean deleteTheAuthorityControl (String oid_);
	public String pageInitGetAuthorityControls (MaControlCdt cdt_,String roll);
	
	//设备预检修服务
	public String createTheCheckPoint(Ma设备检修周期 ck_);
	public Ma设备检修周期 getTheCheckPoint(String id_);
	public List<Ma设备检修周期> getTheCheckPoints(MaCheckPointCdt cdt);
	public String pageInitgetTheCheckPoints(MaCheckPointCdt cdt,String roll);
	public Boolean updateTheCheckPoint(Ma设备检修周期 ck_);
	public Boolean deleteTheCheckPoint(String id_);
	
	public void execCheckPoint();
	public String pageInitgetTheCheckAccouts(MaCheckPointCdt cdt,String roll);
	public Ma设备预检修台帐 getTheCheckAccout(String id,String eqId);
	public Boolean updateTheCheckAccount(Ma设备预检修台帐 ck_);
	public Boolean deleteTheCheckAccount(String id_);
	/**
	 * 获取分页数据服务
	 * @param roll
	 * @param num
	 * @return
	 */
	public String pageNumMaBase(String roll,Integer num);
	
	//设备编码服务接口
	public String createEQCode(String acronym,String model,String modelid);
	
	//图纸上传服务
    public String createTheDrawingType(Ma图纸分类 el_);//创建图纸分类
    public String createTheDrawing(Ma图纸 el_);//创建图纸
    public Boolean updateTheDrawingType(Ma图纸分类 el_);//修改图纸分类
    public Boolean updateTheDrawing(Ma图纸 el_);//修改图纸
    public Boolean deleteTheDrawingType(String id_);//删除图纸分类
    public Boolean deleteTheDrawing(String id_);//删除图纸
    public Ma图纸分类 getTheDrawingType(String id_);
    public Ma图纸 getTheDrawing(String id_);
    public String pageInitgetTheDrawing(DrawingCdt cdt,String roll);
    public List<Ma图纸分类> getTheDrawingTypes(DrawingCdt cdt);
}
